import { RouteRecordRaw } from 'vue-router';

export default {
  name: 'statistic',
  path: '/statistic',
  component: () => import('@/layout/index.vue'),
  redirect: '/statistic/game',
  meta: {
    title: 'menus.mStatistic',
    icon: 'el-icon-odometer',
    sort: 0,
    roles: 'JadeSoft-Agent'
  },
  children: [
    {
      name: 'statistic_game',
      path: '/statistic/game',
      component: () => import('@/views/statistic/game/index.vue'),
      meta: {
        title: 'menus.mStatisticGame',
        icon: 'el-icon-more',
        affix: true
      }
    },
    {
      name: 'statistic_level',
      path: '/statistic/level',
      component: () => import('@/views/statistic/level/index.vue'),
      meta: {
        title: 'menus.mStatisticLevel',
        icon: 'el-icon-more'
      }
    },
    {
      name: 'statistic_recharge',
      path: '/statistic/recharge',
      component: () => import('@/views/statistic/recharge/index.vue'),
      meta: {
        title: 'menus.mStatisticRacharge',
        icon: 'el-icon-more'
      }
    }
  ]
} as RouteRecordRaw;
